import java.util.*;
import java.math.*;

class Main {
	public static void main(String[] arg) {
		Scanner c = new Scanner(System.in);
		BigDecimal r, ans;
		String outs;
		int n;
		while(c.hasNext())
		{
			r = c.nextBigDecimal();
			n = c.nextInt();
			ans = r.pow(n);
			ans = ans.stripTrailingZeros();
			outs = ans.toPlainString();
			outs = outs.replaceAll("^0", "");
			System.out.printf("%s\n", outs);
		}
		/*
		while (c.hasNext())
			System.out.println(c.nextBigDecimal().pow(c.nextInt())
					.stripTrailingZeros().toPlainString().replaceAll("^0", ""));
					*/
	}
}
